package cn.cdutetc.library.entity.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.math.BigDecimal;
import java.time.LocalDateTime;

@Data
@Schema(description = "费用视图对象")
public class FeeVO {

    @Schema(description = "费用记录ID")
    private Integer feeId;

    @Schema(description = "用户ID")
    private Integer userId;

    @Schema(description = "用户名")
    private String userName;

    @Schema(description = "图书ID")
    private Integer bookId;

    @Schema(description = "图书名称")
    private String bookName;

    @Schema(description = "费用类型：overdue_fee/damage_fee/lost_fee")
    private String type;

    @Schema(description = "费用类型描述")
    private String typeDesc;

    @Schema(description = "费用金额")
    private BigDecimal amount;

    @Schema(description = "费用原因")
    private String reason;

    @Schema(description = "计算时间")
    private LocalDateTime calculateTime;

    @Schema(description = "损坏比例")
    private double Ratio;

}
